import * as ant from "../countAnt/index";
const initState = 0;
export default function render(state = initState, action) {
  const { type, data } = action;
  switch (type) {
    case ant.INCREMENT:
      return state + data;
    case ant.DECREMENT:
      return state - data;
    default:
      return state;
  }
}
